Learn Git The Hard Way by Ian Miell

Learn Git The Hard Way by Ian Miell

Author:Ian Miell [Ian Miell]
Language: eng
Format: epub, mobi, pdf
Publisher: leanpub.com
Published: 2018-02-13T00:00:00+00:00


You can see this repository’s view of all the branches it is aware of by running this:

23 $ git branch --all

* master remotes/origin/HEAD -> origin/master remotes/origin/master

Here you see the local master branch, followed by the remotes/origin/HEAD pointer (remember: HEAD is a pointer to a location in the repository), which is linked to remotes/origin/master.

If you want to dig into the internals at this point, you can peek at the .git folder again:

24 $ ls .git/refs/

heads remotes tags

which has heads, which contains references to the local branch:

25 $ cat .git/refs/heads/master



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.